package com.huike.clues.mapper;


import com.huike.clues.domain.TbClueTrackRecord;
import com.huike.clues.domain.vo.ClueTrackRecordVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 线索跟进记录Mapper接口
 *
 * @date 2021-04-19
 */
public interface TbClueTrackRecordMapper {

    /**
     * 根据线索id查询线索跟进记录
     *
     * @param clueId
     * @return
     */
    List<TbClueTrackRecord> findClueTrackRecords(Long clueId);

    /**
     * 线索id关联的跟进记录条数
     *
     * @return
     */
    Integer ClueTrackRecordsNum(Long clueId);

    /**
     * 线索跟进记录表的新增
     * @param clueTrackRecordVo
     * @return
     */
    Integer addClueTrackRecord(@Param("clueTrackRecordVo") ClueTrackRecordVo clueTrackRecordVo,
                               @Param("createBy") String createBy, @Param("date") Date date);

}
